﻿using AppDesign.Models.ManageType;
using Idte.Core.Infrastructure.Repository;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace AppDesign.Models
{
    [AggregateAttribute]
    public class AppRelation
    {
        [Key, Column(Order = 0)]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.None)]
        public Guid UniqueId { get; set; }


        [Key, Column(Order = 1)]

        public Guid AppParId { get; set; }
        public AppTypes AppTypesPar { get; set; }


        [Key, Column(Order = 2)]
        public Guid AppChildId { get; set; }
        public AppTypes AppTypesChild { get; set; }

        public string PropertyName { get; set; }
        public string RelationType { get; set; }
        public string AccMod { get; set; }
        public string DataAnnoAttribute { get; set; }
    }
}